using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration;
using SalesPages.DomainModel;
namespace SalesPages.EntityFrameworkRepository.Mapping
{
    public class Press_imageMap : EntityTypeConfiguration<Press_image>
    {
        public Press_imageMap()
        {
            // Primary Key
            this.HasKey(t => t.image_id);

            // Properties
            // Table & Column Mappings
            this.ToTable("Press_image");
            this.Property(t => t.image_id).HasColumnName("image_id");
            this.Property(t => t.imagedata).HasColumnName("imagedata");
            this.Property(t => t.imagesize).HasColumnName("imagesize");
        }
    }
}
